package com.ljf.config.enums;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.ljf.common.enums.BasicEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 发号器配置明细  config_base_impulse_sender_detail  类型  type  时间格式  枚举
 *
 * @author LJF
 * @since 2025-01-06
 */
@Getter
@AllArgsConstructor
public enum ConfigBaseImpulseSenderDetailTypeDateFormatEnum implements BasicEnum {

    YYYY_MM_DD(1, "年月日", "yyyyMMdd"),
    YY_MM_DD(2, "年(两位)月日", "yyMMdd"),
    YYYY_MM(3, "年月", "yyyyMM"),
    YY_MM(4, "年(两位)月", "yyMM"),
    YYYY(5, "年", "yyyy"),
    YY(6, "年(两位)", "yy");

    @JsonProperty("code")
    @ApiModelProperty(value = "编码")
    private final Integer code;

    @JsonProperty("name")
    @ApiModelProperty(value = "描述")
    private final String name;

    @JsonProperty("format")
    @ApiModelProperty(value = "格式")
    private final String format;

}
